package com.yunchang.springboot.mapper.mwsreport;

import com.yunchang.springboot.models.mwsreportbean.MwsPayment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MwsPaymentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MwsPayment record);

    int insertSelective(MwsPayment record);

    MwsPayment selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MwsPayment record);

    int updateByPrimaryKey(MwsPayment record);

    List<MwsPayment> getOtherFeesDateByCreateTime(String time);

    List<String> selectMarketplaceNameBySettlementId(String settlementId);

    List<String> selectCurrencyBySettlementId(String settlementId);

    List<MwsPayment> getRebateDateByCreateTime(@Param("time") String time, @Param("transactionType") String transactionType);

    List<MwsPayment> getPaymentSales(String time);

    List<Double> getOriginalAmountForPaymentSalesByMwsPayment(MwsPayment mwsPayment);
}